import request from "@/utils/request";

//菜品管理页面
//查询菜品记录列表
export function queryDish(data) {
  return request({
    url: "/dish/query",
    method: "post",
    data: data,
  });
}

//新增菜品记录
export function addDish(data) {
  return request({
    url: "/dish/add",
    method: "post",
    data: data,
  });
}

//删除菜品记录
export function deleteDish(data) {
  return request({
    url: "/dish/delete",
    method: "post",
    data: data,
  });
}

//年级/班级管理页面
//查询班级记录列表
export function queryDishType(data) {
  return request({
    url: "/dishType/query",
    method: "post",
    data: data,
  });
}

//删除班级记录
export function deleteDishType(data) {
  return request({
    url: "/dishType/delete",
    method: "post",
    data: data,
  });
}

//获取班级记录页面的树状图
export function organizationClazz(data) {
  return request({
    url: "/dishType/organization",
    method: "post",
    data: data,
  });
}

//学生管理页面
//查询学生记录列表
export function queryStudent(data) {
  return request({
    url: "/student/query",
    method: "post",
    data: data,
  });
}

//添加学生记录
export function addStudent(data) {
  return request({
    url: "/student/add",
    method: "post",
    data: data,
  });
}

//删除学生记录
export function deleteStudent(data) {
  return request({
    url: "/student/delete",
    method: "post",
    data: data,
  });
}

//教师管理页面
//查询教师记录列表
export function queryTeacher(data) {
  return request({
    url: "/teacher/query",
    method: "post",
    data: data,
  });
}

//新增教师记录
export function addTeacher(data) {
  return request({
    url: "/teacher/add",
    method: "post",
    data: data,
  });
}

//删除教师记录
export function deleteTeacher(data) {
  return request({
    url: "/teacher/delete",
    method: "post",
    data: data,
  });
}

//监护人管理页面
//查询监护人记录
export function queryGuardian(data) {
  return request({
    url: "/guardian/query",
    method: "post",
    data: data,
  });
}